package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("voice")
public class Voice {
@TableId(value = "vid",type = IdType.AUTO)
  private Integer vid;
  private String vname;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date uploadtime;
  private Integer aid;
  private String vpath;
  private Integer statevip;
  private Integer num;
  private long state;
  @TableField(exist = false)
    private Album album;



}
